<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="renderer" content="webkit"/>
    <meta name="force-rendering" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title>返利列表</title>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="../css/shop.css">
    <link rel="stylesheet" href="../css/weui.min.css">
    <link rel="stylesheet" href="../css/jquery-weui.min.css">
    <script src="../js/jquery-2.1.4.js"></script>
    <script src="../js/jquery-weui.js"></script>
    <script type="text/javascript" src="../js/city-picker.js" charset="utf-8"></script>
    <script src="../wxJs/utils/contain.js"></script>
    <script src="../wxJs/utils/storage.js"></script>
</head>

<body>
<div class="header" >
    <a class="haader-left" href="javascript:window.history.go(-1)"><i class="iconfont icon-left"></i></a>
    <div class="haader-content">订单列表</div>
    <div class="haader-right">
        <!--  <i class="iconfont icon-riqi"></i>&nbsp;
      <i class="iconfont icon-shaixuan"></i>-->
    </div>
</div>
<div id="myOrderList">

</div>


<link rel="stylesheet" href="../css/weui.min.css">
<link rel="stylesheet" href="../css/jquery-weui.min.css">
<script src="../js/jquery-2.1.4.js"></script>
<script src="../js/jquery-weui.js"></script>
<script>
    var shopId = GetQueryString("shopId");    //当前商家id
    if (!shopId) {
        window.history.back(-1);
    } else {
        $.post(getWeiContextPath() + "/wx/order/queryReturnOrder", {shopId: shopId}, function (res) {
            console.log(res)
            var _myOrderList = $('#myOrderList').empty()
            $.each(res, function (i, obj) {
                _myOrderList.append('<a href="#" class="shop-contain">\n' +
                    '        <div class="shop-name flex between">\n' +
                    '            订单:' + obj.order_num + '\n' +
                    '            <div class="f12">' + obj.create_time + '</div>\n' +
                    '        </div>\n' +
                    '        <div class="order-item">\n' +
                    '            <div class="product-info">\n' +
//                    '                <div class="product-name">消费店铺：' + obj.shop_name + '</div>\n' +
                    '                <div class="product-name">会员号：' + obj.phone_num + '</div>\n' +
                    '            </div>\n' +
                    '        </div>\n' +
                    '        <div class="sum-price">\n' +
                    '            返利金额：\n' +
                    '            <text class="price">￥' + obj.stream_money + '</text>\n' +
                    '        </div>\n' +
                    '    </a>')
            })
        })
    }


</script>
</body>

</html>